<?php echo $html->css("screen/staff_list_staff.css");?>
<?php echo $this->element('menu', array("active" => "10.a"));?>
<ul class="breadcrumb">
        <li>
          <?php echo $this->Html->link(__('Staff  ', true), array('action' => 'index'), array('class'=>'fist_link'));?>
        </li>
        <li>
          <a href="#" >Add Staff  </a>
        </li>
      </ul>
<script type="text/javascript">	  
	$(document).ready(function(){		
		$("#StaffAdminAddForm").validate({
			rules: {
				'data[Staff][password]': {
					required: true,
					minlength: 3
				},
				'data[Staff][confirm_password]': {
					required: true,
					minlength: 3,
					equalTo:'#StaffPassword'
				}
			},
			messages: {			
				'data[Staff][password]': {
					required: "Please enter password",
					minlength: "This password must consist of at least 3 characters",					
				},			
				'data[Staff][confirm_password]': {
					required: "Please enter password",
					minlength: "This password must consist of at least 3 characters",
					equalTo: "Please enter the same password as above"
				}
			}
		});
		$('.jqTransform').jqTransform({width:100});
	});
</script>	  
<div id="content" class="staffs form">	
        <fieldset class="form">
		<?php echo $this->Form->create('Staff');?>			
                 	<?php
		echo $this->Form->input('first_name', array('class'=>'required'));
		echo $this->Form->input('last_name', array('class'=>'required'));
		echo $this->Form->input('email', array('class'=>'required email'));
		echo $this->Form->input('password');
		echo $form->input('confirm_password',array('type'=>'password','label'=> __('Confirm password', true)));
		echo '<span class="jqTransform">';
		echo $this->Form->input('staff_type_id');
		echo '</span>';
	?>
	<div class="clear">
		<?php echo $form->submit(__('Register', true),array('class'=>'bt bt_save','div'=>false));?>
	</div>
	 <?php echo $this->Form->end();?>
        </fieldset>		
     </div>